package com.bsoft.wx.config.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author hdh
 * @ Data   :Created in 21:54 2023/1/31
 * @ Description 自定义token
 * @ Modified By: hdh
 * @ Version : 1.0
 */
public class OAuth2Token implements AuthenticationToken {
    private String token;

    public OAuth2Token(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
